<?php
namespace Admin\Controller;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/5
 * Time: 16:08
 */
use Goji\UserModel;
use Think\Controller;
class UserBaseController extends Controller
{
    public $uid = 1;
    public $userInfo = array();
    protected $member_id;

    function __construct() {
        parent::__construct();
        $noCheckAction = array('admin_login');
        if(!in_array(ACTION_NAME,$noCheckAction)) {
            $this->checkUserLogin();
        }
    }

    /**
     * 验证管理员是否登入
     */
    public function checkUserLogin(){
        if($_SESSION['member_id']=='0' || $_SESSION['member_id']){
            $this->member_id = $_SESSION['member_id'];
        }else{
            returnMobileJson(0,'未登录');
        }
    }

    public function jurisdiction(){

    }
}